/**
 * 
 */
function control($scope,$http){

	$scope.load = function(){
		$http.get("http://localhost:8080/restservice/rest/usuarios").success(function(data){
			$scope.firstName = data.firstName;
			$scope.secondName = data.secondName;
			$scope.email = data.email;
			$scope.phoneNumber = data.phoneNumber;
			$scope.sexo = data.sexo;
//			$scope.$digest();
		});
		
//		services.UserFactory.get({}, function(userFactory) {
//			$scope.firstname = userFactory.firstName;
//		});
//		
//		app.controller('MyCtrl1', [ '$scope', 'UserFactory',
//				function($scope, UserFactory) {
//					alert("Ddan");
//					UserFactory.get({}, function(userFactory) {
//						$scope.firstname = userFactory.firstName;
//					});
//				} ]);
	};
	
}
//
//		var app = angular.module('ngdemo.controllers', []);
//		alert("Ddan");
//		app.controller('MyCtrl1', [ '$scope', 'UserFactory',
//				function($scope, UserFactory) {
//					alert("Ddan");
//					UserFactory.get({}, function(userFactory) {
//						$scope.firstname = userFactory.firstName;
//					});
//				} ]);
//	
